package com.lagou.rpc.server;

import com.lagou.rpc.common.converter.Converter;
import lombok.Data;

/**
 * simpleRpc配置类
 *
 * @author wlz
 * @date 2020/4/30
 */
@Data
public class SimpleRpcConfig {
    /**
     * 服务端口
     */
    private int port = 9000;
    /**
     * worker线程池
     */
    private int workerThreadPoolSize = 4;
    /**
     * master线程池
     */
    private int masterThreadPoolSize = 1;
    /**
     * 数据转换器
     */
    private Converter converter;
    /**
     * 服务注册器
     */
    private SimpleRpcMethodRegistry simpleRpcMethodRegistry = new SimpleRpcMethodRegistry();
}
